.PHONY: clean

CC = gcc
RM = del

PROJECT = swf
EXT = .exe

LFLAGS = -lz
LPATH = -L ../lib/zlib-1.2.5
IPATH = -I ../lib/zlib-1.2.5
CFLAGS = -Wall -g $(IPATH)
OBJS = main.o abc_file.o bit_file.o

$(PROJECT)$(EXT): base.h.gch $(OBJS) 
	$(CC) -o $@ $(OBJS) $(LFLAGS) $(LPATH)

base.h.gch: base.h
	$(CC) $(IPATH) $<

main.o: main.c abc_file.h base.h
abc_file.o: abc_file.c abc_file.h base.h
bit_file.o: bit_file.h bit_file.c base.h

clean:
	$(RM) *.exe *.o

